home *** CD-ROM | disk | FTP | other *** search
- /*
- SAGlobals.h
- Based on SAGlobals unit, © Apple Computer
- Created for Symantec C++ 8.x by Glenn L. Austin
-
- The A5 world created for globals is created in the same heap as the code
- resource, based upon the address of InitA5 in relation to ApplicZone.
-
- The A5 world is a handle which is moved high in the application's heap
- and then locked. This handle is left locked unless you explicitly unlock it.
- */
-
-
- #ifdef __cplusplus
- extern "C" {
- #endif
-
- #if PRAGMA_IMPORT_SUPPORTED
- #pragma import on
- #endif
-
- /********************************************************************************
- ** InitA5()
- **
- ** Creates an A5 world for globals. Returns TRUE if successful, FALSE
- ** otherwise.
- ********************************************************************************/
- extern pascal Boolean InitA5(void);
-
- /********************************************************************************
- ** SetUpA5()
- **
- ** Makes sure the A5 world is moved high and locked, then it saves off the
- ** current A5 and initializes the A5 world for globals.
- ********************************************************************************/
- extern pascal void SetUpA5(void);
-
- /********************************************************************************
- ** RestoreA5()
- **
- ** Restores the old A5 value saved off in SetUpA5().
- ********************************************************************************/
- extern pascal void RestoreA5(void);
-
- /********************************************************************************
- ** DisposeA5()
- **
- ** Disposes of the A5 world for globals.
- **
- ** •NOTE• Make SURE that you've called RestoreA5 before calling DisposeA5!
- ********************************************************************************/
- extern pascal void DisposeA5(void);
-
- /********************************************************************************
- ** UnlockA5()
- **
- ** Unlocks the A5 world so that it can float in the heap.
- **
- ** •NOTE• Do not call this if you have variables that are set as pointers
- ** to other variables or data -- like strings.
- ********************************************************************************/
- extern pascal void UnlockA5(void);
-
- #if PRAGMA_IMPORT_SUPPORTED
- #pragma import off
- #endif
-
- #ifdef __cplusplus
- }
- #endif
-